/**
 * @description webpack 基础配置
 * @author xfj
 */

module.exports = {
  mode: 'development',
  module: {
    rules: [
      {
        test: /\.js$/,
        loader: 'babel-loader',
        options: {
          presets: [
            [
              '@babel/preset-env', 
              {
                useBuiltIns: 'usage',
                corejs: '3',
              }
            ], 
            '@babel/preset-react'
          ]
        },
        exclude: /node_modules/,
      }
    ]
  }
}